-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ide target component types #6126
Add ide target component types #6126
Conversation
Related to this question about listing test suites. Cabal doesn't have this yet. I used one of the suggested workarounds but this feature would be nice to have (and a small addition to |
@philderbeast, thanks. Looks like a good idea to me, but I would organise the help text differently, as follows:
That is, I would lift the description of the default into the description of the command and take it out of the I wondered if the boolean logic of the compTypes :: (Bool, Bool, Bool) -> NamedComponent -> Bool
compTypes (False, False, False) = const True
compTypes (exes, tests, benches) = \x -> (exes && isCExe x) || (tests && isCTest x) || (benches && isCBench x) |
@philderbeast, is there a reason that there is no |
Yes, I wanted a listing of test suite targets myself and could imagine wanting other runnable component types. I didn't want to add |
5983db8
to
3486928
Compare
One thing worth checking is pluralisation. Should the flag be |
@philderbeast, on pluralisation, I thought |
@philderbeast, thanks. I've merged. |
In a project (
stack.yaml
) with hundreds of packages I want a quick way to list test suites only.I used cabal for this demo because it has way more components (but not yet hundreds):